import request from '@/utils/request'

// 查询工厂燃料品名列表
export function listFuel(query) {
  return request({
    url: '/factory/fuel/list',
    method: 'get',
    params: query
  })
}

// 查询工厂燃料品名详细
export function getFuel(id) {
  return request({
    url: '/factory/fuel/' + id,
    method: 'get'
  })
}

// 新增工厂燃料品名
export function addFuel(data) {
  return request({
    url: '/factory/fuel',
    method: 'post',
    data: data
  })
}

// 修改工厂燃料品名
export function updateFuel(data) {
  return request({
    url: '/factory/fuel',
    method: 'put',
    data: data
  })
}

// 删除工厂燃料品名
export function delFuel(id) {
  return request({
    url: '/factory/fuel/' + id,
    method: 'delete'
  })
}
